Skip to content

Make t and allowed_delta configurable#413

Open
zhouwfang wants to merge 2 commits intomainfrom
zhoufang/iop-116-make-t-and-allowed_delta-configurable
Open

Make t and allowed_delta configurable#413
zhouwfang wants to merge 2 commits intomainfrom
zhoufang/iop-116-make-t-and-allowed_delta-configurable

Conversation

@zhouwfang
Copy link
Copy Markdown
Contributor

@zhouwfang zhouwfang requested review from benr-ml and jonas-lj April 6, 2026 22:36
@zhouwfang zhouwfang requested a review from bmwill as a code owner April 6, 2026 22:36
@zhouwfang zhouwfang force-pushed the zhoufang/iop-116-make-t-and-allowed_delta-configurable branch from 1c3ab17 to d5e011c Compare April 6, 2026 22:37
@zhouwfang zhouwfang force-pushed the zhoufang/iop-116-make-t-and-allowed_delta-configurable branch from d5e011c to 1cca276 Compare April 6, 2026 22:40
Copy link
Copy Markdown
Contributor

@bmwill bmwill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move changes lgtm @Bridgerz want to take a look as well?

let (nodes, threshold) = build_reduced_nodes(&committee, allowed_delta, weight_divisor)?;
let (nodes, threshold) = build_reduced_nodes(
&committee,
threshold_basis_points,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The name confused me a bit. You call it basis points here because you're defining the threshold as some ratio with a fixed denominator, MAX_BASIS_POINTS, and then use this to compute the threshold with the actual given weights, right? if so, I'd call this something else, like TOTAL_BASIS_WEIGHT, or just document the relationship with THRESHOLD_BASIS_POINTS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants